package com.allwees.support.payment.paypal.client;

import com.paypal.core.PayPalHttpClient;
import com.allwees.support.payment.paypal.configuration.PaypalProperties;

public class PayPalClient {

    private PayPalClient() {}

    public static PayPalHttpClient getInstance() {
        return PayPalClientHolder.INSTANCE;
    }

    private static class PayPalClientHolder {
        private static PayPalHttpClient INSTANCE = new PayPalHttpClient(PaypalProperties.getEnvironment());
    }
}
